package com.yicong.ants.bean.me;



/**
 * address
 *
 * @author cchao
 * @since 2019-12-26
 */

public class AddressItemBean {
    String id;
    String uid;
    String name;
    String mobile;
    String province;
    String city;
    String country;
    String detail;
    String warp_address;
    int is_default;

    public AddressItemBean() {
    }

    public String getWarp_address() {
        return province + "-" + city + "-" + country;
    }

    public String getId() {
        return this.id;
    }

    public String getUid() {
        return this.uid;
    }

    public String getName() {
        return this.name;
    }

    public String getMobile() {
        return this.mobile;
    }

    public String getProvince() {
        return this.province;
    }

    public String getCity() {
        return this.city;
    }

    public String getCountry() {
        return this.country;
    }

    public String getDetail() {
        return this.detail;
    }

    public int getIs_default() {
        return this.is_default;
    }

    public AddressItemBean setId(String id) {
        this.id = id;
        return this;
    }

    public AddressItemBean setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public AddressItemBean setName(String name) {
        this.name = name;
        return this;
    }

    public AddressItemBean setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public AddressItemBean setProvince(String province) {
        this.province = province;
        return this;
    }

    public AddressItemBean setCity(String city) {
        this.city = city;
        return this;
    }

    public AddressItemBean setCountry(String country) {
        this.country = country;
        return this;
    }

    public AddressItemBean setDetail(String detail) {
        this.detail = detail;
        return this;
    }

    public AddressItemBean setWarp_address(String warp_address) {
        this.warp_address = warp_address;
        return this;
    }

    public AddressItemBean setIs_default(int is_default) {
        this.is_default = is_default;
        return this;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof AddressItemBean)) return false;
        final AddressItemBean other = (AddressItemBean) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$id = this.getId();
        final Object other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
        final Object this$uid = this.getUid();
        final Object other$uid = other.getUid();
        if (this$uid == null ? other$uid != null : !this$uid.equals(other$uid)) return false;
        final Object this$name = this.getName();
        final Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
        final Object this$mobile = this.getMobile();
        final Object other$mobile = other.getMobile();
        if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile))
            return false;
        final Object this$province = this.getProvince();
        final Object other$province = other.getProvince();
        if (this$province == null ? other$province != null : !this$province.equals(other$province))
            return false;
        final Object this$city = this.getCity();
        final Object other$city = other.getCity();
        if (this$city == null ? other$city != null : !this$city.equals(other$city)) return false;
        final Object this$country = this.getCountry();
        final Object other$country = other.getCountry();
        if (this$country == null ? other$country != null : !this$country.equals(other$country))
            return false;
        final Object this$detail = this.getDetail();
        final Object other$detail = other.getDetail();
        if (this$detail == null ? other$detail != null : !this$detail.equals(other$detail))
            return false;
        final Object this$warp_address = this.getWarp_address();
        final Object other$warp_address = other.getWarp_address();
        if (this$warp_address == null ? other$warp_address != null : !this$warp_address.equals(other$warp_address))
            return false;
        if (this.getIs_default() != other.getIs_default()) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof AddressItemBean;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $id = this.getId();
        result = result * PRIME + ($id == null ? 43 : $id.hashCode());
        final Object $uid = this.getUid();
        result = result * PRIME + ($uid == null ? 43 : $uid.hashCode());
        final Object $name = this.getName();
        result = result * PRIME + ($name == null ? 43 : $name.hashCode());
        final Object $mobile = this.getMobile();
        result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
        final Object $province = this.getProvince();
        result = result * PRIME + ($province == null ? 43 : $province.hashCode());
        final Object $city = this.getCity();
        result = result * PRIME + ($city == null ? 43 : $city.hashCode());
        final Object $country = this.getCountry();
        result = result * PRIME + ($country == null ? 43 : $country.hashCode());
        final Object $detail = this.getDetail();
        result = result * PRIME + ($detail == null ? 43 : $detail.hashCode());
        final Object $warp_address = this.getWarp_address();
        result = result * PRIME + ($warp_address == null ? 43 : $warp_address.hashCode());
        result = result * PRIME + this.getIs_default();
        return result;
    }

    public String toString() {
        return "AddressItemBean(id=" + this.getId() + ", uid=" + this.getUid() + ", name=" + this.getName() + ", mobile=" + this.getMobile() + ", province=" + this.getProvince() + ", city=" + this.getCity() + ", country=" + this.getCountry() + ", detail=" + this.getDetail() + ", warp_address=" + this.getWarp_address() + ", is_default=" + this.getIs_default() + ")";
    }
}
